package com.balance.pojo.sys;

import com.balance.pojo.common.CommonPojo;

import java.util.List;

/**
 * @Title: SysRole
 * @Author 小东
 * @Package com.balance.pojo.sys
 * @Date 2025/3/28 8:37
 * @description: 角色实体
 */
public class SysRole extends CommonPojo {
    private Long id;
    private String roleName;
    private String roleCode;
    private String description;
    private Integer orderNum;

    // 关联菜单权限（非数据库字段）
    private List<SysMenu> menus;

    @Override
    public String toString() {
        return "SysRole{" +
                "id=" + id +
                ", roleName='" + roleName + '\'' +
                ", roleCode='" + roleCode + '\'' +
                ", description='" + description + '\'' +
                ", orderNum=" + orderNum +
                '}';
    }

    public List<SysMenu> getMenus() {
        return menus;
    }

    public void setMenus(List<SysMenu> menus) {
        this.menus = menus;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }
}
